﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CQIE.TES.IService;
using CQIE.TES.WEB.ADMIN.Filter;
using CQIE.TES.WEB.USER.Models;

namespace CQIE.TES.WEB.ADMIN.Controllers.Question
{
    public class QuestionController : Controller
    {
        public IQuestionService QuestionService { get; set; }

        // GET: Question
        [MyFilter]
        public ActionResult Index()
        {
            ViewBag.StudentQuestions = QuestionService.GetqQuestion(ENUM_EVA_TYPE.Student).Children;
            ViewBag.SelfQuestions = QuestionService.GetqQuestion(ENUM_EVA_TYPE.Self).Children;
            ViewBag.TeacherQuestion = QuestionService.GetqQuestion(ENUM_EVA_TYPE.Teacher).Children;
            ViewBag.LeaderQuestion = QuestionService.GetqQuestion(ENUM_EVA_TYPE.CourseLeader);
            ViewBag.DepartmentQuestion = QuestionService.GetqQuestion(ENUM_EVA_TYPE.Department);

            ViewBag.Title = "题目管理";
            return View();
        }
    }
}